import 'package:flutter/material.dart';
import 'package:flutter_smart_heating/ui/ui.dart';

Widget previewView(context) {
  return Column(
    children: [
      Container(
        height: 50,
        color: UiTheme(context).match(light: Colors.white),
        child: Row(
          children: List.generate(
            3,
            (index) => const Expanded(
              child: Padding(
                padding: EdgeInsets.symmetric(horizontal: 20),
                child: UiBlock(
                  height: 20,
                ),
              ),
            ),
          ),
        ),
      ),
      const Divider(height: 0.3),
      const Expanded(
        child: UiLoading(),
      )
    ],
  );
}
